power: regulator: Add ctrl_reg and volt_reg fields for pmic
authorKeerthy <[email protected]>
Fri, 30 Sep 2016 03:50:42 +0000 (09:20 +0530)
committerSimon Glass <[email protected]>
Tue, 11 Oct 2016 16:17:04 +0000 (10:17 -0600)
commit34514b8b9ce287e2b8e90c77974889d8c53656fe
tree4425aed5ab580cce59ba279a70475b8600eeecd3
parent477dfe2ffc45720462ff0baca82076d704b785df
power: regulator: Add ctrl_reg and volt_reg fields for pmic

The ctrl reg contains bit fields to enable and disable regulators,
and volt_reg has the bit fields to configure the voltage values.
The registers are frequently accessed hence make them part
of dm_regulator_uclass_platdata structure.

Signed-off-by: Keerthy <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
include/power/regulator.h